home *** CD-ROM | disk | FTP | other *** search
- Subject: Scripting Problem
- Sent: 8/1/96 4:03 PM
- Received: 8/1/96 4:16 PM
- From: Serge Froment, sfroment@odyssee.net
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Dear ODF Experts:
-
- I have implemented scripting similar to ODFDraw except that my
- FW_MScriptable objects are generated on the fly by my FW_CElementIterator
- and they are reference counted so they are released when no longer needed
- (I override AcquireScriptable and ReleaseScriptable in a way similar to
- FW_CScriptableCollection).
-
- When I write a script like "get myProperty of first myClass", I actually
- get the property. But when I write a script like "get first myClass", I get
- an error message saying "Can't make myClass 1 into myClass 1". Similar
- script with ODFDraw returns a result like "shape 1 of application ODFDraw
- Sample".
-
- I have stepped the code from FW_MScriptable::GetContainedObject and it does
- its job without error, including FW_InsertScriptableIntoDesc. However, I
- don't really understand what FW_InsertScriptableIntoDesc does and where the
- error comes from.
-
- Does someone have a clue?
-
- Serge
-
-
-